export type MenuOptionType = {
  dataStyle: "dicData" | "string" | "split" | "yty-ui";
  dicDataKeyKey: string;
  dicDataValueKey: string;
  splitSymbol: string;
  isSingleQuotes: boolean;
  toNumber: boolean;
};

// 菜单配置
const menuConfig: CommonMenuType<MenuOptionType> = [
  {
    label: "数据格式",
    descript: "数据格式",
    field: "dataStyle",
    type: "enmu",
    list: [
      { label: "字典", value: "dicData" },
      { label: "字符串", value: "string" },
      { label: "指定符号分割", value: "split" },
      { label: "指定符号分割", value: "split" },
      { label: "表格配置", value: "yty-ui" }
    ]
  },
  {
    label: "字典键key",
    descript: "字典键key",
    field: "dicDataKeyKey",
    type: "input"
  },
  {
    label: "字典值key",
    descript: "字典值key",
    field: "dicDataValueKey",
    type: "input"
  },
  {
    label: "分割符号",
    descript: "分割符号",
    field: "splitSymbol",
    type: "input"
  },
  {
    label: "单引号",
    descript: "使用单引号代替双引号",
    field: "isSingleQuotes"
  },
  {
    label: "数值类型",
    descript: "转换为Number类型",
    field: "toNumber"
  }
];

[
  { label: "在用", value: "7" },
  { label: "库存", value: "11" },
  { label: "闲置", value: "0" },
  { label: "已报废", value: "2" }
];

("7,11,0,2");

export default menuConfig;
